package com.laxcen.app;

import android.app.Service;

import com.laxcen.basiclib.BaseApp;
import com.laxcen.basiclib.bean.Config;
import com.laxcen.basiclib.service.MqttService;

import java.util.Arrays;
import java.util.List;

public class App extends BaseApp {
    //初始化配置
    @Override
    public Config initConfig() {
        return new Config()
                .setDEBUG(Const.DEBUG)
                .setEnvir(Const.ENVIR)
                .setAppId(Const.APPID);
    }

    //这里传入要保活的Service进程
    @Override
    public List<Class<? extends Service>> keepService() {
        Class[] service = {
                MqttService.class
        };
        return Arrays.asList(service);
    }

    /**
     * 初始化完成后
     */
    @Override
    public void ready() {


    }
}
